﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Areas/Website/Views/Shared/Product.Master"Inherits="System.Web.Mvc.ViewPage<UserEntity>" %>

<asp:Content ID="Content1" ContentPlaceHolderID="MainContent" runat="server">
    <% Html.RenderPartial("CustomerMenu"); %>
    <form method="post" action="">
    <div class="lc">
        <div class="inner">
            <table>
                <tr>
                    <td class="textRight fontBold width150">
                        用户名:
                    </td>
                    <td class="width200">
                        <%= Html.TextBox("Uname",Model.Uname,new {disabled="disabled"}) %>
                    </td>
                    <td>
                        点击下图更换用户图标
                    </td>
                </tr>
                <tr>
                    <td class="textRight fontBold">
                        显示昵称:
                    </td>
                    <td>
                        <%= Html.TextBox("NickName", Model.NickName)%>
                    </td>
                    <td rowspan="3">
                        <img id="userFace" src="<%=string.Format("{0}/{1}",ViewData["UserFaceRoot"],Model.Face) %>"
                            alt="" />
                        <%= Html.Hidden("Face",Model.Face) %>
                    </td>
                </tr>
                <tr>
                    <td class="textRight fontBold">
                        手机号码:
                    </td>
                    <td>
                        <%= Html.TextBox("MobilePhone", Model.MobilePhone)%>
                    </td>
                </tr>
                <tr>
                    <td class="textRight fontBold">
                        电话:
                    </td>
                    <td>
                        <%= Html.TextBox("Phone", Model.Phone)%>
                    </td>
                </tr>
                <tr>
                    <td class="textRight fontBold">
                        QQ:
                    </td>
                    <td colspan="2">
                        <%= Html.TextBox("QQ", Model.QQ)%>
                    </td>
                </tr>
                <tr>
                    <td class="textRight fontBold">
                        阿里旺旺:
                    </td>
                    <td colspan="2">
                        <%= Html.TextBox("Ali", Model.Ali)%>
                    </td>
                </tr>
                <tr>
                    <td class="textRight fontBold">
                        MSN:
                    </td>
                    <td colspan="2">
                        <%= Html.TextBox("Msn", Model.Msn)%>
                    </td>
                </tr>
                <tr>
                    <td class="textRight fontBold width80">
                    </td>
                    <td colspan="2">
                        <input type="submit" value="保存" />
                        <span class="colorBlue">本站承诺:绝不向任何个人和组织泄露你的注册信息 </span>
                    </td>
                </tr>
            </table>
        </div>
    </div>
    </form>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="head" runat="server">
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="cssLink" runat="server">
</asp:Content>
<asp:Content ID="Content4" ContentPlaceHolderID="jsLink" runat="server">
</asp:Content>
<asp:Content ID="Content5" ContentPlaceHolderID="cssContent" runat="server">
    <style type="text/css">
        .lc
        {
            margin: 10px auto;
            border: solid 1px #A2CBFF;
        }
        .lc div.inner
        {
            border: solid 1px #f2f2f2;
        }
        .lc div.inner table
        {
            border-collapse: collapse;
            width: 100%;
        }
        .lc div.inner table td
        {
            overflow: hidden;
            padding: 5px;
            vertical-align: middle;
            border: solid 1px #E2F2FF;
            line-height: 1.5em;
        }
    </style>
</asp:Content>
<asp:Content ID="Content6" ContentPlaceHolderID="jsContent" runat="server">
    <script type="text/javascript">
        $(function () {
            $("#userFace").click(function () {
                var _userFace = this;
                $.get('<%= Url.Action("UserFaceList") %>', { rnd: Math.random() }, function (result) {
                    result = $(result);
                    result.find("img").click(function () { _userFace.src = this.src; $("#Face").val(this.src); result.dialog("close"); });
                    result.dialog({ width: 596, height: 222, dialogClass: "userFace", modal: true, title: "用户图标", closeText: "×", close: function () { result.dialog("destroy") } });
                })
            }).css("cursor", "pointer");
        });
    </script>
</asp:Content>
